educational

How to Set UNIX file Permissions

Setting UNIX file permissions can be a confusing task for newbies - here's the painless way:

I'm not a programmer, and in fact, I'm not even a particularly "technical" person - but like many other Webmasters, I sometimes need to perform "technical" tasks in order to accomplish a specific objective. Like many other folks in this business, I enjoy the enhanced functionality and ease of site maintenance and content management that scripting can provide; and I'm more than willing to crash my server in an attempt to install the latest bit of software to catch my attention.

While I enjoy the benefits as well as the challenges that CGI script installation can offer, I am quite often frustrated by the cryptic installation instructions the script authors provide. They seem to assume that you know as much as they do about the arcane procedures involved in getting the damn things to work, and sadly this is often not the case. For example, one of the earliest obstacles that I faced when I first started fiddling with CGI scripts was the setting of "file permissions."

Although many Webmasters might consider this to be child's play, my first experiences in this realm were baffling beyond belief. My install sheet said that I needed to set a certain file's permissions to "777," but provided no clue as to how I should go about doing so. I knew the process involved the use of my FTP program, but searching the software's "help" file proved futile, and I was unable to find a menu item that said "permissions" - since they (Cute FTP) decided to refer to these as "attributes" instead. Compounding my confusion was the fact that the "codes" which indicate WHAT the permissions should be can be stated in several different ways, such as "drwxr-xr-x" or "755" or "write."

Performing a web search on "UNIX file permissions" was also a senseless journey into the nether regions of geek-dom. While I was able to uncover vast stores of information about the topic, nothing I discovered actually helped me to set my file's permissions using the software I had available to me. Sure, I now knew how to set permissions through the command line using telnet, but I'm on a virtual host that doesn't offer telnet access:

So for those of you who don't know your CHMOD from a hole in the ground (and who don't really care to since you only want to install a script, not become a programmer), here's how to set permissions using two common FTP programs: CuteFTP and WS_FTP Pro.

Using WS-FTP Pro

Setting file permissions using WS-FTP Pro is easily done by clicking on a series of "checkboxes." Simply right click on the desired file (or directory), and select "chmod (UNIX)" then left click. A small dialog box should appear (fig. 1).

"Read" permission has a value of "4," "Write" permission has a value of "2," and "Executes" value is "1." When Read, Write, and Execute permissions are added together, they equal "7," (4+2+1). When these three numbers are added together, and then set for each of the three permission groups (Owner, Group, and Other), you will have a valid "CHMOD mask" and your permissions will be set. Easy, right? You'll do fine as long as you can count up to "7." CuteFTP is even easier than WS-FTP Pro for newbies to handle due in part to its "Manual" indicator that removes all the guesswork (and mathematics) out of setting file permissions.

Using CuteFTP

CuteFTP is even easier than WS-FTP Pro for newbies to handle due in part to its "Manual" indicator that removes all the guesswork (and mathematics) out of setting file permissions. Simply "right click" the file whose permissions need modification and select "Change file attributes" from the pop-up menu. A dialog box (fig. 2) will appear, displaying Read, Write, and Execute "check boxes" for Owner, Group, and Public (Other). There is also a field labeled "Manual" on this dialog box.

Either type in the setting you need (777 for instance) into the "Manual" box, or click on the appropriate boxes to set your permissions. As you check off these boxes, the Manual box will change accordingly, updating the number inside and verifying that you have the permissions set right. When the number in the "manual" box equals the desired setting, click "OK." A confirmation dialog box should be displayed: click "OK" again - it's really that simple!

As you can see, actually setting your file permissions is a heck of a lot easier than trying to understand them, and a necessary evil in the world of CGI script installation. Good luck - and if at first you don't succeed, be thankful that you made backup copies...

Copyright © 2025 Adnet Media. All Rights Reserved. XBIZ is a trademark of Adnet Media.
Reproduction in whole or in part in any form or medium without express written permission is prohibited.

More Articles

opinion

WIA Profile: Lainie Speiser

With her fiery red hair and a laugh that practically hugs you, Lainie Speiser is impossible to miss. Having repped some of adult’s biggest stars during her 30-plus years in the business, the veteran publicist is also a treasure trove of tales dating back to the days when print was king and social media not even a glimmer in the industry’s eye.

Women in Adult ·
opinion

Fighting Back Against AI-Fueled Fake Takedown Notices

The digital landscape is increasingly being shaped by artificial intelligence, and while AI offers immense potential, it’s also being weaponized. One disturbing trend that directly impacts adult businesses is AI-powered “DMCA takedown services” generating a flood of fraudulent Digital Millennium Copyright Act (DMCA) notices.

Corey D. Silverstein ·
opinion

Building Seamless Checkout Flows for High-Risk Merchants

For high-risk merchants such as adult businesses, crypto payments are no longer just a backup plan — they’re fast becoming a first choice. More and more businesses are embracing Bitcoin and other digital currencies for consumer transactions.

Jonathan Corona ·
opinion

What the New SCOTUS Ruling Means for AV Laws and Free Speech

On June 27, 2025, the United States Supreme Court handed down its landmark decision in Free Speech Coalition v. Paxton, upholding Texas’ age verification law in the face of a constitutional challenge and setting a new precedent that bolsters similar laws around the country.

Lawrence G. Walters ·
opinion

What You Need to Know Before Relocating Your Adult Business Abroad

Over the last several months, a noticeable trend has emerged: several of our U.S.-based merchants have decided to “pick up shop” and relocate to European countries. On the surface, this sounds idyllic. I imagine some of my favorite clients sipping coffee or wine at sidewalk cafés, embracing a slower pace of life.

Cathy Beardsley ·
profile

WIA Profile: Salima

When Salima first entered the adult space in her mid-20s, becoming a power player wasn’t even on her radar. She was simply looking to learn. Over the years, however, her instinct for strategy, trust in her teams and commitment to creator-first innovation led her from the trade show floor to the executive suite.

Women in Adult ·
opinion

How the Interstate Obscenity Definition Act Could Impact Adult Businesses

Congress is considering a bill that would change the well-settled definition of obscenity and create extensive new risks for the adult industry. The Interstate Obscenity Definition Act, introduced by Sen. Mike Lee, makes a mockery of the First Amendment and should be roundly rejected.

Lawrence G. Walters ·
opinion

What US Sites Need to Know About UK's Online Safety Act

In a high-risk space like the adult industry, overlooking or ignoring ever-changing rules and regulations can cost you dearly. In the United Kingdom, significant change has now arrived in the form of the Online Safety Act — and failure to comply with its requirements could cost merchants millions of dollars in fines.

Cathy Beardsley ·
opinion

Understanding the MATCH List and How to Avoid Getting Blacklisted

Business is booming, sales are steady and your customer base is growing. Everything seems to be running smoothly — until suddenly, Stripe pulls the plug. With one cold, automated email, your payment processing is shut down. No warning, no explanation.

Jonathan Corona ·
profile

WIA Profile: Leah Koons

If you’ve been to an industry event lately, odds are you’ve heard Leah Koons even before you’ve seen her. As Fansly’s director of marketing, Koons helps steer one of the fastest-growing creator platforms on the web.

Women in Adult ·
Show More